package com.xuecheng.commons.model.vo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * 订单
 */
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ColumnWidth(value = 20) //列宽
public class OrdersVo implements Serializable {



    @ExcelProperty(value = "序号")
    private Long id;

    /**
     * 订单号
     */
    @ColumnWidth(value = 28)
    @ExcelProperty(value = "订单号")
    private String orderNo;

    /**
     * 课程Id
     */
    @ExcelProperty(value = "课程Id")
    private Long coursePubId;

    /**
     * 课程名称
     */

    @ExcelProperty(value = "课程名称")
    private String coursePubName;

    /**
     * 用户ID
     */

    @ExcelProperty(value = "用户ID")
    private Long userId;

    /**
     * 用户名

    @ExcelProperty(value = "用户名")
     * 忽略这个字段
     */
    @ExcelIgnore
    private String userName;

    /**
     * 交易价
     */
    @ExcelProperty(value = "交易价")
    private Long price;

    /**
     * 公司ID
     */
     @ColumnWidth(value = 30)
    @ExcelProperty(value = "机构ID")
    private Long companyId;
    /**
     * 交易状态
     */
    @ExcelProperty(value = "交易状态")
    private String statu;
    @ExcelIgnore
    private Integer status;


    @ExcelProperty(value = "订单创建时间")
    private Date createDate; //订单创建时间
    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    private Date endTime; //订单结束时间
}
